import { GetterTree } from 'vuex'
import { RootState } from './interface'

const getters: GetterTree<RootState, RootState> = {
  userInfo: state => state.user.userInfo,
  name: state => state.user.name,
  collapsed: (state): boolean => state.app.collapsed,
  modeColor: (state): boolean => state.app.modeColor,
  loginFormType: (state): number => state.app.loginFormType
}
export default getters
